home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / MiscKit1.7.1 / MiscKit / Palettes / MiscDatePalette / MiscDateView.subproj / MiscDateView.h < prev    next >
Encoding:
Text File  |  1994-10-18  |  1.3 KB  |  55 lines

  1. //
  2. //    MiscDateView.h -- a view for dealing with input and display of dates
  3. //        Written by Hugh Ashton, Copyright (c) 1994 by Hugh Ashton.
  4. //                Version 1.0  All rights reserved.
  5. //        This notice may not be removed from this source code.
  6. //
  7. //    This object is included in the MiscKit by permission from the author
  8. //    and its use is governed by the MiscKit license, found in the file
  9. //    "LICENSE.rtf" in the MiscKit distribution.  Please refer to that file
  10. //    for a list of all applicable permissions and restrictions.
  11. //    
  12.  
  13.  
  14. #import <appkit/appkit.h>
  15.  
  16. @interface MiscDateView:View
  17. {
  18.     id    day;
  19.     id    dayDown;
  20.     id    dayUp;
  21.     id    dow;
  22.     id    month;
  23.     id    monthDown;
  24.     id    monthUp;
  25.     id    year;
  26.     id    yearDown;
  27.     id    yearUp;
  28. }
  29.  
  30. + initialize;
  31. - (BOOL)isDateValid:sender;
  32. - (BOOL)isItaLeapYear:(int)year;
  33. - (unsigned int)whatDayIs:(int)theDay :(int)theMonth :(int)theYear;
  34. - checkDay:sender;
  35. - (int)getDay:sender;
  36. - (int)getMonth:sender;
  37. - (int)getYear:sender;
  38. - decDay:sender;
  39. - decMonth:sender;
  40. - decYear:sender;
  41. - drawSelf:(const NXRect *)rects :(int)rectCount;
  42. - getTodaysDate:sender;
  43. - incDay:sender;
  44. - incMonth:sender;
  45. - incYear:sender;
  46. - initFrame:(const NXRect *)frameRect;
  47. - outputDOW:(unsigned int)number;
  48. - read:(NXTypedStream *)stream;
  49. - write:(NXTypedStream *)stream;
  50. - day:sender;
  51. - month:sender;
  52. - year:sender;
  53.  
  54. @end
  55.